<HTML> 
<HEAD> 
	<TITLE>3rd Party ROBOTC Drivers</TITLE> 
<link href="tabs.css" rel="stylesheet" type="text/css"/> 
<link href="doxygen.css" rel="stylesheet" type="text/css"/> 
</HEAD> 
 
<BODY bgcolor="#ffffff" link="#000000" vlink="#000000"> 
<table width="100%" bgcolor="navy" cellspacing=0 cellpadding=1 border=0> 
<tr><td><table width="100%" bgcolor="#EEEEDD" cellspacing=0 cellpadding=3 border=0> 
<tr> 
    <td width="33%" align="left"> <img src="images/LOGO_NXT.gif" width=266 height=44 border="0" alt="Mindstorms"></td> 
    <td><b><font size="+3" color="navy">3rd Party ROBOTC Drivers</font></b></td> 
    <td align="right"> <img src="images/logo.png" width=44 height=44 border="0" alt="RobotC"></td>     
</tr> 
  <tr bgcolor="#cccc99" align="right"> 
          <td colspan=3> <font face="arial" size="-1"> [<a href=main.html>Home</a>] [<a target=_top href="https://sourceforge.net/projects/rdpartyrobotcdr/">Download</a>] [<a target=_top href="http://apps.sourceforge.net/mantisbt/rdpartyrobotcdr/my_view_page.php">Submit a bug/suggestion</a>]  [<a target=_top href="http://www.robotc.net/forums/">ROBOTC Forums</a>] [<a target=_top href="http://botbench.com">Blog</a>] [<a target=_top href="http://sourceforge.net/donate/index.php?group_id=257238">Support this project</a>]</font> </td> 
</tr> 
</table></td></tr> 
</table> 
<!-- Generated by Doxygen 1.7.2 -->
<div class="header">
  <div class="summary">
<a href="#define-members">Defines</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<h1>mindsensors-touchpanel.h File Reference</h1>  </div>
</div>
<div class="contents">

<p>Mindsensors TouchPanel.  
<a href="#_details">More...</a></p>
<code>#include &quot;<a class="el" href="common_8h_source.html">common.h</a>&quot;</code><br/>

<p><a href="mindsensors-touchpanel_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="define-members"></a>
Defines</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mptp.html#ga5b157401a24702c7d4e76a234e9819a4">MSTP_I2C_ADDR</a>&#160;&#160;&#160;0x04</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mptp.html#ga3e2d20b85985d28c0fc250b2bafeec7e">MSTP_REG_TOUCH_X</a>&#160;&#160;&#160;0x42</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mptp.html#ga35b8a005e77a8c352fda8c5c1c219486">MSTP_REG_TOUCH_Y</a>&#160;&#160;&#160;0x43</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mptp.html#ga1061606378f358109e27c00688d24d6c">MSTP_REG_BUTTONS</a>&#160;&#160;&#160;0x44</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mptp.html#gababb8db968d0523ec0f21026b04ecc67">MSTP_REG_CAL_XD1</a>&#160;&#160;&#160;0x45</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mptp.html#gaa2383caa8de0dfe0eb1838811b30d580">MSTP_REG_CAL_YD1</a>&#160;&#160;&#160;0x46</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mptp.html#gabac0570b16becc38200fd35ef639eff6">MSTP_REG_CAL_XT1</a>&#160;&#160;&#160;0x47</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mptp.html#ga2a4776cd6bfcb6ef9b31e24483df0fbc">MSTP_REG_CAL_YT1</a>&#160;&#160;&#160;0x48</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mptp.html#ga8fd513a95e16fd2ecdd56ef117a739d1">MSTP_REG_CAL_XD2</a>&#160;&#160;&#160;0x49</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mptp.html#ga9675b69a647ff374f7604b0b4fb6a39c">MSTP_REG_CAL_YD2</a>&#160;&#160;&#160;0x4A</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mptp.html#ga388c9db4e92d7847fd40d20cf2d3589a">MSTP_REG_CAL_XT2</a>&#160;&#160;&#160;0x4B</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mptp.html#gad8ef5694e434661eea33728ecfb1c323">MSTP_REG_CAL_YT2</a>&#160;&#160;&#160;0x4C</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mptp.html#ga2f69eff381382b13d1686812ed2c8914">MSTP_REG_G_AVAIL</a>&#160;&#160;&#160;0x4D</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mptp.html#ga1bc387f85972462ae7b0fd676c793342">MSTP_REG_G_NEXTX</a>&#160;&#160;&#160;0x4E</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mptp.html#gafc9df1f08479f87860239294278e0b4f">MSTP_REG_G_NEXTY</a>&#160;&#160;&#160;0x4F</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mptp.html#ga76cbe60b17d0d40b6f4441b898504f69">BUTTON_L1</a>&#160;&#160;&#160;0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mptp.html#ga30bb0bb1edb52038138602344a892fc8">BUTTON_L2</a>&#160;&#160;&#160;1</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mptp.html#gac50479823adca0fbf39a3cace2b6cb78">BUTTON_L3</a>&#160;&#160;&#160;2</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mptp.html#ga53e495a1f49afbae4f3b53ac3e8c8231">BUTTON_L4</a>&#160;&#160;&#160;3</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mptp.html#ga0d1e25e9a7b1ae94e302e91314270941">BUTTON_R1</a>&#160;&#160;&#160;4</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mptp.html#ga7de1af17484bf0192c373643c2ef10ec">BUTTON_R2</a>&#160;&#160;&#160;5</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mptp.html#ga9367cf9e8510b1824384ba3a844bd70b">BUTTON_R3</a>&#160;&#160;&#160;6</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mptp.html#ga5ff6a4a783590392793d28079ed5c3b1">BUTTON_R4</a>&#160;&#160;&#160;7</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mptp.html#gacd589da522d277b94c3ebe4e8e65090e">MSTP_REG_RAW_BC</a>&#160;&#160;&#160;0x4D</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mptp.html#ga137382d3cef59afda91ffde0df97ce8a">MSTP_REG_RAW_X</a>&#160;&#160;&#160;0x4E</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mptp.html#ga1d9e7077fe29fcf1b8abc813ae79e697">MSTP_REG_RAW_Y</a>&#160;&#160;&#160;0x4F</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mptp.html#ga6188bab9bc7fd9d5574ede7529cce053">isButtonTouched</a>(X, Y)&#160;&#160;&#160;(X &gt;&gt; Y) &amp; 0x01</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mptp.html#ga772ee5f62f39304b15070d13b2144e23">isButtonL1Touched</a>(X)&#160;&#160;&#160;(X &gt;&gt; BUTTON_L1) &amp; 0x01</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mptp.html#ga9952e2784f6344c921c200e7307da272">isButtonL2Touched</a>(X)&#160;&#160;&#160;(X &gt;&gt; BUTTON_L2) &amp; 0x01</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mptp.html#gae948e6a1546df848d6b84c9c36a4d586">isButtonL3Touched</a>(X)&#160;&#160;&#160;(X &gt;&gt; BUTTON_L3) &amp; 0x01</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mptp.html#ga779ac769a8fe6a2535d82f54c225101a">isButtonL4Touched</a>(X)&#160;&#160;&#160;(X &gt;&gt; BUTTON_L4) &amp; 0x01</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mptp.html#gab998d2d2d0c5faf129e48cbc5a5c0b00">isButtonR1Touched</a>(X)&#160;&#160;&#160;(X &gt;&gt; BUTTON_R1) &amp; 0x01</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mptp.html#gae1f4805c27aeb981e3849b3b49afde7f">isButtonR2Touched</a>(X)&#160;&#160;&#160;(X &gt;&gt; BUTTON_R2) &amp; 0x01</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mptp.html#ga0d775f4f3fb3c461b8795f2a3f397e67">isButtonR3Touched</a>(X)&#160;&#160;&#160;(X &gt;&gt; BUTTON_R3) &amp; 0x01</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mptp.html#ga0d0f454466ba3d09148a7a4195bd0957">isButtonR4Touched</a>(X)&#160;&#160;&#160;(X &gt;&gt; BUTTON_R4) &amp; 0x01</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mptp.html#ga22f25c607fb2f82e758460109c8f236a">MSTPresetCalibration</a>(x)&#160;&#160;&#160;MSTPsendCmd(tSensors link, ubyte cmd, ubyte addr = MSTP_I2C_ADDR);</td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mptp.html#gaedbbf52bc792bbb063d8c95abb7d49ae">MSTPgetTouch</a> (tSensors link, int &amp;x, int &amp;y, ubyte &amp;buttons, ubyte addr=MSTP_I2C_ADDR)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mptp.html#ga1f1ac88e15924213f1a58f76181f1818">MSTPsendCmd</a> (tSensors link, ubyte cmd, ubyte addr=MSTP_I2C_ADDR)</td></tr>
<tr><td colspan="2"><h2><a name="var-members"></a>
Variables</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__common.html#gaa172ef131853460e5b9f5c6db81d30f4">tByteArray</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mptp.html#gad724e3bf57cfcdb54a86db51adf65d51">MSTP_I2CRequest</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__common.html#gaa172ef131853460e5b9f5c6db81d30f4">tByteArray</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mptp.html#gaf13906730849a0c8268d4c193393fc32">MSTP_I2CReply</a></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Mindsensors TouchPanel. </p>
<p><a class="el" href="mindsensors-touchpanel_8h.html" title="Mindsensors TouchPanel.">mindsensors-touchpanel.h</a> provides an API for the Mindsensors TouchPanel.</p>
<p>Changelog:</p>
<ul>
<li>0.1 Initial release.</li>
</ul>
<p>Credits:</p>
<ul>
<li>Big thanks to Mindsensors for providing me with the hardware necessary to write and test this.</li>
</ul>
<p>License: You may use this code as you wish, provided you give credit where it's due.</p>
<p>THIS CODE WILL ONLY WORK WITH ROBOTC VERSION 3.59 AND HIGHER.</p>
<dl class="author"><dt><b>Author:</b></dt><dd>Xander Soldaat </dd></dl>
<dl class="date"><dt><b>Date:</b></dt><dd>30 November 2011 </dd></dl>
<dl class="version"><dt><b>Version:</b></dt><dd>0.1 </dd></dl>

<p>Definition in file <a class="el" href="mindsensors-touchpanel_8h_source.html">mindsensors-touchpanel.h</a>.</p>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Wed Mar 13 2013 19:56:43 for ROBOTC Drivers by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.2 </small></address>
</body>
</html>
